cmd 命令窗口执行:consul agent -dev
consul 自带 UI 界面,打开网址:http://localhost:8500 ,可以看到当前注册的服务界面
创建服务 sc create consul binPath= "C:\consul1.9.0\consul_1.9.0_windows_amd64\consul.exe agent -server -ui -bootstrap -client 0.0.0.0 -data-dir="C:\consul1.9.0\data-dir" -bind 172.16.129.139"
consul.exe agent -server -ui -bootstrap -client 0.0.0.0 -data-dir="C:\consul1.9.0\data-dir" -bind 172.16.xx.139
|